package com.hn658.base.message.eventbus.event.systemchat;

import com.hn658.base.message.common.enums.EventPriority;
import com.hn658.base.message.common.enums.EventType;
import com.hn658.base.message.eventbus.event.Event;
import com.hn658.base.message.notification.msg.entity.MessageEO;

/**
 * 普通私聊
 * Created by baihai on 2015/11/19.
 */
public class SystemMsgEvent extends Event{

	private static final long serialVersionUID = -2122004276521451955L;
	
	/**
     * 私信
     */
    private MessageEO message;

    /**
     * 是否只发送给个人
     */
    private Boolean isPerson;
    
    public SystemMsgEvent(){}

    public SystemMsgEvent(EventType type, EventPriority priority,
                                String appId){
        super(type,priority,appId);
    }

    public MessageEO getMessage() {
        return message;
    }

    public void setMessage(MessageEO message) {
        this.message = message;
    }

	public Boolean getIsPerson() {
		if(isPerson==null){
			return false;
		}
		return isPerson;
	}

	public void setIsPerson(Boolean isPerson) {
		this.isPerson = isPerson;
	}
    
}
